<p-card [style]="{width: '430px'}">

  <div class="ui-g-12 ui-md-12">
    <div class="ui-inputgroup">
      <span class="ui-inputgroup-addon">图片标题</span>
      <input type="text" pInputText placeholder="在这里输入标题" [(ngModel)]="carousel.title" style="width: 300px">
    </div>
  </div>

  <div class="ui-g-12 ui-md-12">
    <div class="ui-inputgroup">
      <span class="ui-inputgroup-addon">图片描述</span>
      <input type="text" pInputText placeholder="在这里输入描述" [(ngModel)]="carousel.discription" style="width: 300px">
    </div>
  </div>

  <div class="ui-g-12 ui-md-12">
    <div class="ui-inputgroup">
      <span class="ui-inputgroup-addon">封面图片</span>
      <input type="file" (change)="onFileChanged($event)" style="width: 300px">

    </div>
  </div>

  <div class="ui-g-12 ui-md-12">
    <div class="ui-inputgroup">
      <span class="ui-inputgroup-addon">链接地址</span>
      <input type="text" pInputText placeholder="在这里输入链接地址" [(ngModel)]="carousel.contenturl" style="width: 300px">
    </div>
  </div>

  <p-footer>
    <button class="btn btn-primary" (click)="save()">保存</button>
  </p-footer>
</p-card>
